
use colored::Colorize;

pub struct Logger();

impl Logger {
    fn print_time() {
        let local: chrono::DateTime<chrono::Local> = chrono::Local::now();
        print!("[{}] ----- ", local);
    }
    pub fn debug(info: &str) {
        Self::print_time();
        println!("{}", info.blue());
    }
    pub fn warn(info: &str) {
        Self::print_time();
        println!("{}", info.yellow());
    }
    pub fn err(info: &str) {
        Self::print_time();
        println!("{}", info.red());
    }
    pub fn info(info: &str) {
        Self::print_time();
        println!("{}", info.green());
    }
}